/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2012
 */

package com.asiainfo_linkage.model;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;


/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */

@Table(value = "REM_MEMBER")
public class AddMember implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大�?0")显示错误消息
	//columns START
	
	@Column	  // 表示该对象属性可以映射到数据库里作为一个字段
	@Id       // 表示该字段为一个自增长的Id
	private java.lang.Long MEMBER_ID;
	
/*
    @Column
	@Name    // 表示该字段可以用来标识此对象，或者是字符型主键，或者是唯一性约束
	private java.lang.String name;
*/	
	@Column
	private java.lang.Long  GROUP_ID;
	
	@Column
	private java.lang.String MEMBER_NAME;
	
	@Column
	private java.lang.String MEMBER_EMAIL;
	
	@Column
	private java.lang.String MEMBER_PHONE;
	
	@Column
	private java.lang.String MEMBER_ADDRESS;
	

	public AddMember(){
	}

	public AddMember(
		java.lang.Long MEMBER_ID
	){
		this.MEMBER_ID = MEMBER_ID;
	}

	public void setMEMBER_ID(java.lang.Long value) {
		this.MEMBER_ID = value;
	}
	
	public java.lang.Long getMEMBER_ID() {
		return this.MEMBER_ID;
	}
	
	public void setGROUP_ID(java.lang.Long value) {
		this.GROUP_ID = value;
	}
	
	public java.lang.Long getGROUP_ID() {
		return this.GROUP_ID;
	}
	
	public void setMEMBER_NAME(java.lang.String value) {
		this.MEMBER_NAME = value;
	}
	
	public java.lang.String getMEMBER_NAME() {
		return this.MEMBER_NAME;
	}
	 
	public void setMEMBER_EMAIL(java.lang.String value) {
		this.MEMBER_EMAIL = value;
	}
	
	public java.lang.String getMEMBER_EMAIL() {
		return this.MEMBER_EMAIL;
	}
	
	public void setMEMBER_PHONE(java.lang.String value) {
		this.MEMBER_PHONE = value;
	}
	
	public java.lang.String getMEMBER_PHONE() {
		return this.MEMBER_PHONE;
	}
	
	public void setMEMBER_ADDRESS(java.lang.String value) {
		this.MEMBER_ADDRESS = value;
	}
	
	public java.lang.String getMEMBER_ADDRESS() {
		return this.MEMBER_ADDRESS;
	}
	
	
	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("MEMBER_ID",getMEMBER_ID())
			.append("GROUP_ID",getGROUP_ID())
			.append("MEMBER_NAME",getMEMBER_NAME())
			.append("MEMBER_EMAIL",getMEMBER_EMAIL())
			.append("MEMBER_PHONE",getMEMBER_PHONE())
			.append("MEMBER_ADDRESS",getMEMBER_ADDRESS())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getMEMBER_ID())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof AddMember == false) return false;
		if(this == obj) return true;
		AddMember other = (AddMember)obj;
		return new EqualsBuilder()
			.append(getMEMBER_ID(),other.getMEMBER_ID())
			.isEquals();
	}
}

